<template>
  <wx-open-audio ref="wxaudio">
    <script type="text/wxtag-template">
      <div style="
        width: 40px;
        height: 40px;
        background-color: green;
      "

      >
      </div>
    </script>
    <script type="text/wxtag-template" slot="playing">
      <div style="
        width: 40px;
        height: 40px;
        background-color:red;
      ">
      </div>
    </script>
  </wx-open-audio>
</template>
<script>
export default {
  name: "WxAudio",
  data() {
    return {
      _audio: null,
    };
  },
  methods: {
    setAudio() {
      console.log("audio对象->", this.$refs.wxaudio);
      this.$store.commit("audio/setAudio", this.$refs.wxaudio);
    },
  },
};
</script>

<style scoped></style>
